<?php

/**
 * Ctdocumento form
 * @subpackage form
 * @author     ingenyo
 */
class CtdocumentoAnaliticoForm extends CtdocumentoForm
{

  public function configure()
  {

    $this->padres = CtCaracteristicaPadrePeer::getAnaliticoPadres();
    parent::configure();

  }

  public function doSave($con = null)
  {
    if ($this->isNew)
    {
      $this->getObject()->setIddocumentopadre(sfContext::getInstance()->getUser()->getAttribute('id_documento_monografico'));
    }
    parent::doSave($con);
    $this->getObject()->setTipoLibroAnalitico($con);

  }

}